package com.mybatis.example.dao;

import com.mybatis.example.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface UserMapper {
    //查询所有用户
    List<User> getUsers();
    //根据id查询用户
    User getUserById(int id);
    //根据id修改用户邮箱
    int updateEmailById(Map<String,Object> map);
}
